package designpattern.d16;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2020/2/20 15:18
 */
public class Demo {
    public static void main(String[] args) {

        ApiStatInfo apiStatInfo = new ApiStatInfo();

        apiStatInfo.setApi("s-name.com");
        apiStatInfo.setErrorCount(120);
        apiStatInfo.setRequestCount(150);
        apiStatInfo.setTimeoutCount(300);
        apiStatInfo.setDurationOfSeconds(100);

        ApplicationContext.getInstance().getAlert().check(apiStatInfo);
    }
}
